﻿using Bouyei.GeoCore.Converters;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Bouyei.GeoCore.GeoParsers.GeoJson
{
    public class GeometryWriter
    {
        public GeometryWriter() { }

        public string ToWriter<proT, geoT>(FeatureCollection<proT, geoT> features)
        {
            return new JsonExtensions().ConvertFrom(features);
        }

        public string ToWriter<geoT>(GeometryCollection<geoT> geometries)
        {
            return new JsonExtensions().ConvertFrom(geometries);
        }
    }
}
